package com.xubeizhi.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xubeizhi.entity.Category;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
public interface CategoryMapper extends BaseMapper<Category> {
    Integer existsByName(String categoryName);

    Integer removeCategory(Category category);

    Integer soldCategory(Category category);

    List<Category> listCategory(String status, String removeStatus);
}
